#!/bin/sh
disk=$1

osdnum=`mount |grep $disk | awk '{print $3}' | awk -F - '{print $2}'`

service ceph stop osd.${osdnum}

osddev=`mount |grep ${disk}1 | awk '{print $3}'`
umount ${osddev}
